﻿namespace Vdc.Grid
{
    using System;
    using System.Reflection;
    using System.Web.UI;

    public class DetailGridCollection : GridPersistentCollection, INamingContainer
    {
        public void Add(DetailGrid grid)
        {
            base.List.Add(grid);
        }

        public void Remove(DetailGrid grid)
        {
            base.List.Remove(grid);
        }

        public void Remove(int i)
        {
            base.List.RemoveAt(i);
        }

        public DetailGrid this[int index]
        {
            get
            {
                try
                {
                    return (DetailGrid) base.List[index];
                }
                catch (Exception exception1)
                {
                    if (exception1 != null)
                    {
                    }
                    return null;
                }
            }
        }
    }
}

